package com.company.collectionTest;

import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;

public class Test_Map {

	public static void main(String[] args) {
		
		HashMap map = new HashMap();
		map.put("zaa", new Date());
		map.put(new Integer(23), "hello");
		map.put("work", "good");
		
		String s = (String) map.get("work");
		System.out.println(s);
		
		Set all = map.keySet();
		
		Iterator it = all.iterator();
		
		while(it.hasNext())
			System.out.println(it.next());

	}

}
